package com.itheima.stock.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zxh
 * @created 2024/12/25 18:13
 * @description
 */
@Data
@Component
@ConfigurationProperties(prefix = "stock.job")
public class StockJobProperties {
    /**
     * 调度中心
     */
    private String adminAddress;
    /**
     * 调度中心访问令牌
     */
    private String accessToken;
    private String appName;
    /**
     * 执行器注册地址
     */
    private String executorAddress;
    private String executorIp;
    private Integer executorPort;
    private String loggingConfig;
    private String executorLogPath;
    private Integer executorRetentionDays;
}
